
<div class="span9">
            <h1 class="page-title">管理员列表</h1>
<div class="btn-toolbar">
    <a href="index.php?c=admin&a=add&admin=1" class="btn btn-primary"><i class="icon-plus"></i> 管理员添加</a>
    <button class="btn">Import</button>
    <button class="btn">Export</button>
  <div class="btn-group">
  </div>
</div>
<div class="well">
            <table class="table">
                <thead>
                    <tr>
                      <th>编号</th>
                      <th>管理员名称</th>
                      <th>邮箱</th>
                      <th>级别</th>

                    </tr>
                </thead>
                <tbody>
                    <?php foreach($data as $v){ ?>
                        <tr>
                            <td> <?php echo $v['id'];?> </td>
                            <td> <?php echo $v['username'];?> </td>
                            <td> <?php echo $v['email'];?> </td>
                            <td> <?php echo $v['level'];?> </td>
                            <!-- <td> <a href="admin_edit.php?id=<?php echo $v['id'];?>">修改<i class="icon-pencil"></i></a> </td> -->
                            <td> <a href="index.php?id=<?php echo $v['id'];?>&c=admin&a=del&admin=1" role="button" onclick="return confirm('请确认是否真的要删除？')">删除<i class="icon-remove"></i></a> </td>

                        </tr>
                <?php } ?>

                </tbody>

            </table>

        </div>
    <div class="pagination">
    <ul>
        <?echo $pages;?>
    </ul>

    <!-- <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">警示！</h3>
        </div>
        <div class="modal-body">
            <p class="error-text"><i class="icon-warning-sign modal-icon"></i>确定真的删除该条新闻吗？</p>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
            <a href="index.php" class="btn btn-danger" data-dismiss="modal">删除</a>
        </div>
    </div> -->
</div>


